import React from 'react';
import { HashRouter as Router, Route, Link ,Switch} from "react-router-dom";
import routerObj from '../../../../router.js'


class RouterView extends React.Component{
  render(){
    return (
      <Router>
        <Switch>
        {
          routerObj.map((routerItem,index)=> <Route key={index} exact path={routerItem.path} component={routerItem.component}></Route>)
        }
        </Switch>
      </Router>
    )
  }
}

export default RouterView